<?php
class Recall_paper extends CI_Controller{
	function __construct(){
		parent::__construct();
	}
    function index($offset = 0){
		$this->load->helper('form');
        $data = array('title' => '添加',
                      'heading' => '欢迎',
                      'message' => '添加试卷');  
		$this->load->model('recall/recall_paper_model');
		if($query=$this->recall_paper_model->read_recall_paper()){
			$data['records']=$query;
		}
		foreach($data['records'] as $row){
			echo ($row->u_id);
		}
		//$this->load->view('header',array('title'=>"添加试卷"));
		$this->load->view('recall/recall_paper_view',$data); 
		
	}
	
	function paper_creat(){
		$this->load->helper('url');
		$this->load->model('recall/recall_paper_model');
		$this->recall_paper_model->creat_recall_paper($this->input->post());
		$this->index();
	}
	
	
}
?>